const wpRoutes = [
  {
    path: '/wp',
    redirect: '/wp/my-todo',
    meta: {
      requiresAuth: true
    },
    component: () => import('layouts/AppLayout.vue'),
    children: [
      {
        path: 'my-todo',
        name: 'my-todo',
        meta: {
          title: '工作台',
          fullPath: '/wp/my-todo'
        },
        component: () => import('pages/Mdm/Dashboard/MyTodo.vue')
      },
      {
        path: 'company',
        name: 'Company',
        meta: {
          title: '公司',
          fullPath: '/wp/company'
        },
        component: () => import('pages/Mdm/Base/Company/Company.vue')
      },
      {
        path: 'companyParameter',
        name: 'CompanyParameter',
        meta: {
          title: '配置公司',
          fullPath: '/wp/companyparameter'
        },
        component: () => import('pages/Mdm/Base/CompanyType/CompanyParameter.vue')
      },
      {
        path: 'company-details/:id',
        name: 'CompanyDetails',
        meta: {
          title: '公司详情',
          noCache: true
        },
        // props: true,
        component: () => import('pages/Mdm/Base/Company/CompanyDetails.vue')
      },
      {
        path: 'department',
        name: 'Department',
        meta: {
          title: '部门',
          fullPath: '/wp/department'
        },
        component: () => import('pages/Mdm/Base/Department/Department.vue')
      },
      {
        path: 'departmentParameter',
        name: 'DepartmentParameter',
        meta: {
          title: '配置部门',
          fullPath: '/wp/departmentparameter'
        },
        component: () => import('pages/Mdm/Base/DepartmentType/DepartmentParameter.vue')
      },
      {
        path: 'department-details/:id',
        name: 'DepartmentDetails',
        meta: {
          title: '部门详情',
          noCache: true
        },
        // props: true,
        component: () => import('pages/Mdm/Base/Department/DepartmentDetails.vue')
      },
      {
        path: 'post',
        name: 'Post',
        meta: {
          title: '岗位',
          fullPath: '/wp/post'
        },
        component: () => import('pages/Mdm/Base/Post/Post.vue')
      },
      {
        path: 'postparameter',
        name: 'PostParameter',
        meta: {
          title: '配置岗位',
          fullPath: '/wp/postparameter'
        },
        component: () => import('pages/Mdm/Base/PostType/PostParameter.vue')
      },
      {
        path: 'post-details/:id',
        name: 'PostDetails',
        meta: {
          title: '岗位详情',
          noCache: true
        },
        // props: true,
        component: () => import('pages/Mdm/Base/Post/PostDetails.vue')
      },
      {
        path: 'role',
        name: 'Role',
        meta: {
          title: '角色',
          fullPath: '/wp/role'
        },
        component: () => import('pages/Mdm/Base/Role/Role.vue')
      },
      {
        path: 'user',
        name: 'User',
        meta: {
          title: '用户',
          fullPath: '/wp/user'
        },
        component: () => import('pages/Mdm/Base/User/User.vue')
      },
      {
        path: 'site',
        name: 'Site',
        meta: {
          title: '地点',
          noCache: true,
          fullPath: '/wp/site'
        },
        component: () => import('pages/Mdm/Base/Site/Site.vue')
      },
      {
        path: 'site-type',
        name: 'SiteType',
        meta: {
          title: '配置地点',
          fullPath: '/wp/site-type'
        },
        component: () => import('pages/Mdm/Base/SiteType/SiteType.vue')
      },
      {
        path: 'site-details/:id',
        name: 'SiteDetails',
        meta: {
          title: '地点详情',
          noCache: true
        },
        // props: true,
        component: () => import('pages/Mdm/Base/Site/SiteDetails.vue')
      },
      {
        path: 'location',
        name: 'Location',
        meta: {
          title: '库位',
          fullPath: '/wp/location'
        },
        component: () => import('pages/Mdm/Base/Location/Location.vue')
      },
      {
        path: 'location-type',
        name: 'LocationType',
        meta: {
          title: '配置库位',
          fullPath: '/wp/location-type'
        },
        component: () => import('pages/Mdm/Base/LocationType/LocationType.vue')
      },
      {
        path: 'business-group',
        name: 'BusinessGroup',
        meta: {
          title: '业务组',
          fullPath: '/wp/business-group'
        },
        component: () => import('pages/Mdm/Base/BusinessGroup/BusinessGroup.vue')
      },
      {
        path: 'business-group-type',
        name: 'BusinessGroupType',
        meta: {
          title: '配置业务组',
          fullPath: '/wp/business-group-type'
        },
        component: () => import('pages/Mdm/Base/BusinessGroupType/BusinessGroupType.vue')
      },
      {
        path: 'business-org',
        name: 'BusinessOrg',
        meta: {
          title: '业务组织',
          fullPath: '/wp/business-org'
        },
        component: () => import('pages/Mdm/Base/BusinessOrg/BusinessOrg.vue')
      },
      {
        path: 'business-org-type',
        name: 'BusinessOrgType',
        meta: {
          title: '配置业务组织',
          fullPath: '/wp/business-org-type'
        },
        component: () => import('pages/Mdm/Base/BusinessOrgType/BusinessOrgType.vue')
      },
      {
        path: 'organizational',
        name: 'Organizational',
        affix: true,
        meta: {
          title: '组织架构',
          noCache: true,
          fullPath: '/wp/organizational'
        },
        component: () => import('pages/Mdm/Org/Org.vue')
      },
      {
        path: 'unspsc',
        name: 'unspsc',
        meta: {
          title: 'unspsc',
          fullPath: '/wp/unspsc'
        },
        component: () => import('pages/Mdm/Unspsc/Unspsc.vue')
      },
      {
        path: 'btn-perm',
        name: 'Menus',
        meta: {
          title: '功能权限列表',
          fullPath: '/wp/btn-perm'
        },
        component: () => import('pages/Mdm/Jurisdiction/Menu.vue')
      },
      {
        path: 'set-menu',
        name: 'Menus',
        meta: {
          title: '自定义菜单',
          fullPath: '/wp/set-menu'
        },
        component: () => import('pages/Mdm/Jurisdiction/SetMenu.vue')
      },
      {
        path: 'file',
        name: 'File',
        meta: {
          title: '文件管理',
          fullPath: '/wp/file'
        },
        component: () => import('pages/Mdm/Files/File.vue')
      },
      {
        path: 'UnspscView/:id',
        name: 'UnspscView',
        meta: {
          title: 'UNSPSC视图维护',
          fullPath: '/wp/UnspscView'
        },
        component: () => import('pages/Mdm/Unspsc/UnspscView.vue')
      },
      {
        path: 'mastercode',
        name: 'MasterCode',
        meta: {
          title: '主数据编码设置',
          fullPath: '/wp/mastercode'
        },
        component: () => import('pages/Mdm/MasterCode/MasterCode.vue')
      },
      {
        path: 'mdm-item',
        name: 'item',
        meta: {
          title: '品项主数据维护',
          fullPath: '/wp/mdm-item'
        },
        component: () => import('pages/Mdm/Item/item.vue')
      },
      {
        path: 'mdm-ca-site',
        name: 'ItemSite',
        meta: {
          title: '品项品类主数据',
          fullPath: '/wp/mdm-ca-site'
        },
        component: () => import('pages/Mdm/Item/ItemSite/ItemSite.vue')
      },
      {
        path: 'itemsitecategory/:id',
        name: 'ItemSitecategory',
        meta: {
          title: '品项品类主数据维护',
          fullPath: '/wp/itemsitecategory'
        },
        component: () => import('pages/Mdm/Item/ItemSite/ItemSiteCategory.vue')
      },
      {
        path: 'itempreview/:id',
        name: 'ItemPreview',
        meta: {
          title: '查看品项',
          fullPath: '/wp/itempreview'
        },
        component: () => import('pages/Mdm/Item/ItemPreview/ItemPreview.vue')
      },
      {
        path: 'relationship/:id',
        name: 'Relationship',
        meta: {
          title: '品项主数据视图维护',
          noCache: true,
          fullPath: '/wp/relationship'
        },
        component: () => import('pages/Mdm/Item/relationship.vue')
      },
      {
        path: 'mdm-itemsite',
        name: 'itemSite',
        meta: {
          title: '品项地点维护',
          fullPath: '/wp/mdm-itemsite'
        },
        component: () => import('pages/Mdm/Item/ItemSite')
      },
      {
        path: 'itemdissite/:id',
        name: 'disSite',
        meta: {
          title: '品项地点查看',
          fullPath: '/wp/itemdissite'
        },
        component: () => import('pages/Mdm/Item/ItemDisSite/disSite')
      },
      {
        path: 'itemdissitepreview/:id',
        name: 'disSitePreview',
        meta: {
          title: '品项地点维护',
          fullPath: '/wp/itemdissitepreview'
        },
        component: () => import('pages/Mdm/Item/ItemDisSite/DisSitePreview')
      },
      {
        path: 'sourceview',
        name: 'SourceView',
        meta: {
          title: '品项货源关系',
          fullPath: '/wp/sourceview'
        },
        component: () => import('pages/Mdm/Item/Source/SourceView')
      },
      {
        path: 'itemList',
        name: 'itemList',
        meta: {
          title: '品项与品项组',
          fullPath: '/wp/itemList'
        },
        component: () => import('pages/Mdm/ProjectTeam/itemList.vue')
      },
      {
        path: 'categorytwo/:id',
        name: 'Categorytwo',
        meta: {
          title: '新增品类',
          fullPath: '/wp/categorytwo'
        },
        component: () => import('pages/Mdm/Categorytwo/Categorytwo.vue')
      },
      {
        path: 'categoryPreview/:id',
        name: 'categoryPreview',
        meta: {
          title: '查看品类',
          fullPath: '/wp/categoryPreview'
        },
        component: () => import('pages/Mdm/Categorytwo/CategoryPreview/CategoryPreview.vue')
      },
      {
        path: 'mdm-category',
        name: 'category',
        meta: {
          title: '品类',
          fullPath: '/wp/mdm-category'
        },
        component: () => import('pages/Mdm/Categorytwo/Category.vue')
      },
      {
        path: 'qualifications',
        name: 'Qualifications',
        meta: {
          title: '工作资质',
          fullPath: '/wp/job/qualifications'
        },
        component: () => import('pages/Mdm/Job/Qualifications/Qualifications.vue')
      },
      {
        path: 'addjob',
        name: 'addjob',
        meta: {
          title: '新增工作',
          fullPath: '/wp/job/addjob'
        },
        component: () => import('pages/Mdm/Job/JobMain/AddJob.vue')
      },
      {
        path: 'addqualifications',
        name: 'addqualifications',
        inLeftNav: false,
        meta: {
          title: '配置资质',
          fullPath: '/wp/job/addqualifications'
        },
        component: () => import('pages/Mdm/Job/JobMain/AddQualifications.vue')
      },
      {
        path: 'reate',
        name: 'reate',
        meta: {
          title: '工作费率',
          fullPath: '/wp/job/reate'
        },
        component: () => import('pages/Mdm/Job/Reate/Reate.vue')
      },
      {
        path: 'codelist',
        name: 'CodeList',
        meta: {
          title: '编码配置',
          fullPath: '/wp/codelist'
        },
        component: () => import('pages/Mdm/Code/CodeList.vue')
      },
      {
        path: 'jobmain',
        name: 'jobmain',
        meta: {
          title: '工作',
          fullPath: '/wp/job/jobmain'
        },
        component: () => import('pages/Mdm/Job/JobMain/JobMain.vue')
      },
      {
        path: 'labor',
        name: 'labor',
        meta: {
          title: '劳动力',
          fullPath: '/wp/labor'
        },
        component: () => import('pages/Mdm/Labor/LaborMain.vue')
      },
      {
        path: 'addlabor',
        name: 'addlabor',
        meta: {
          title: '新增劳动力',
          fullPath: '/wp/addlabor'
        },
        component: () => import('pages/Mdm/Labor/addLabor.vue')
      },
      {
        path: 'classification',
        name: 'Classification',
        meta: {
          title: '品类分类',
          fullPath: '/wp/classification'
        },
        component: () => import('pages/Mdm/Category/Classification.vue')
      },
      {
        path: 'site-item/:id',
        name: 'siteItem',
        meta: {
          title: '品类分类与地点',
          fullPath: '/wp/site-item'
        },
        component: () => import('pages/Mdm/Category/SiteItem.vue')
      },
      {
        path: 'site-item-preview/:id',
        name: 'siteItemPreview',
        meta: {
          title: '查看品类分类与地点',
          fullPath: '/wp/site-item-preview'
        },
        component: () => import('pages/Mdm/Category/SiteItemPreview.vue')
      },
      {
        path: 'mdm-type',
        name: 'MdmType',
        meta: {
          title: '主数据类型参数',
          fullPath: '/wp/mdm-type'
        },
        component: () => import('pages/Mdm/MdmType/MdmType.vue')
      },
      {
        path: 'mdm-code',
        name: 'MdmCode',
        meta: {
          title: '主数据编码参数',
          fullPath: '/wp/mdm-code'
        },
        component: () => import('pages/Mdm/Code/CodeList.vue')
      },
      {
        path: 'site-location',
        name: 'SiteLocation',
        meta: {
          title: '地点库位',
          fullPath: '/wp/site-location'
        },
        component: () => import('pages/Mdm/Base/Site/SiteLocation.vue')
      },
      {
        path: 'language',
        name: 'Language',
        meta: {
          title: '语言管理',
          fullPath: '/wp/language'
        },
        component: () => import('pages/Mdm/SystemSetting/Base/Language.vue')
      },
      {
        path: 'mdm-sup',
        name: 'Supplier',
        meta: {
          title: '供应商主数据',
          fullPath: '/wp/mdm-sup'
        },
        component: () => import('pages/Mdm/Suppliers/Supplier.vue')
      },
      {
        path: 'supplierdetail/:id',
        name: 'SupplierDetails',
        meta: {
          title: '供应商主数据维护',
          fullPath: '/wp/supplierdetail'
        },
        component: () => import('pages/Mdm/Suppliers/SupplierDetails.vue')
      },
      {
        path: 'supplierspreview/:id',
        name: 'SuppliersPreview',
        meta: {
          title: '查看供应商视图',
          fullPath: '/wp/SuppliersPreview'
        },
        component: () => import('pages/Mdm/Suppliers/SuppliersPreview.vue')
      }
    ]
  }
]
export default wpRoutes
